package com.burgeon.backend.SHOP.controller;
/**
 * 直播
 */

import com.burgeon.backend.SHOP.entity.live.LiveVO;
import com.burgeon.backend.SHOP.service.AppLiveStreamingService;
import com.burgeon.backend.stsutil.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.List;

@RequestMapping("shop/live")
@RestController
public class AppLiveStreamingController extends BaseController {
    @Autowired
    private AppLiveStreamingService appLinkService;


    @RequestMapping("data")
    public ResponseResult<List<LiveVO>> getGroupImg(HttpSession session) {
       String token = session.getAttribute("token").toString();

        List<LiveVO> data = appLinkService.getLiveData(token);
        return new ResponseResult<List<LiveVO>>(SUCCESS,data);
    }

}
